package top.wilsonlv.jaguar.cloud.websocket.sdk;

/**
 * @author lvws
 * @since 2021/6/22
 */
public interface WebsocketConstant {

    String ONLINE_KEY_FORMAT = "websocket:online:%s";


    String DESTINATION_WEBSOCKET_PREFIX = "DESTINATION_WEBSOCKET_";

    String DESTINATION_WEBSOCKET_PUSH2USER = DESTINATION_WEBSOCKET_PREFIX + "PUSH2USER";

    String DESTINATION_WEBSOCKET_PUSH2SESSION = DESTINATION_WEBSOCKET_PREFIX + "PUSH2SESSION";


    String DESTINATION_WEBSOCKET_RECEIVE_PREFIX = "DESTINATION_WEBSOCKET_RECEIVE_";

    String DESTINATION_WEBSOCKET_CONNECTED = DESTINATION_WEBSOCKET_RECEIVE_PREFIX + "CONNECTED";

    String DESTINATION_WEBSOCKET_CLOSE = DESTINATION_WEBSOCKET_RECEIVE_PREFIX + "CLOSE";


    String MESSAGE_TYPE_PING = "ping";

    String MESSAGE_TYPE_PONG = "pong";

}
